/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_colegioCriteria extends AbstractORMCriteria {
	public final StringExpression co_id;
	public final StringExpression co_nombre;
	
	public Trp_colegioCriteria(Criteria criteria) {
		super(criteria);
		co_id = new StringExpression("co_id", this);
		co_nombre = new StringExpression("co_nombre", this);
	}
	
	public Trp_colegioCriteria(PersistentSession session) {
		this(session.createCriteria(Trp_colegio.class));
	}
	
	public Trp_colegioCriteria() throws PersistentException {
		this(orm.Basededatosv5PersistentManager.instance().getSession());
	}
	
	public Trp_tipo_colegCriteria createTipo_colegCriteria() {
		return new Trp_tipo_colegCriteria(createCriteria("tipo_coleg"));
	}
	
	public Trp_socio_ecoCriteria createSocio_ecoCriteria() {
		return new Trp_socio_ecoCriteria(createCriteria("socio_eco"));
	}
	
	public Trp_provinciaCriteria createProvinciaCriteria() {
		return new Trp_provinciaCriteria(createCriteria("provincia"));
	}
	
	public Trp_cursoCriteria createTrp_cursoCriteria() {
		return new Trp_cursoCriteria(createCriteria("ORM_Trp_curso"));
	}
	
	public Trp_colegio uniqueTrp_colegio() {
		return (Trp_colegio) super.uniqueResult();
	}
	
	public Trp_colegio[] listTrp_colegio() {
		java.util.List list = super.list();
		return (Trp_colegio[]) list.toArray(new Trp_colegio[list.size()]);
	}
}

